home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / global.cpp < prev    next >
C/C++ Source or Header  |  1994-10-10  |  573b  |  25 lines

  1. #include "global.h"
  2.  
  3. char* global[MAX_GLOBAL];
  4. int global_i[MAX_GLOBAL_I];
  5. int global_num = 1;
  6. event e;
  7.  
  8. void global_remove()
  9.     {
  10.     for(int i = 0; i < MAX_GLOBAL; i++)
  11.     delete global[i];
  12.     }
  13. ////////////////////////
  14. void global_init()
  15.     {
  16.     for(int i = 0; i < MAX_GLOBAL; i++)         // global strings
  17.     global[i] = 0;
  18.     for(i = 1; i < MAX_GLOBAL_I; i++)           // global integers
  19.     global_i[i] = 1;
  20.                                                 // its contexts
  21.     global_i[0] = 0;
  22.     e.what = NOEVENT;
  23.     e.key = EVENT_NO;
  24.     }
  25.